﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

#include "qtsoap.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

// http://www.webxml.com.cn/zh_cn/index.aspx

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void                    handleQQCheckOnline(QDomNodeList nodeList);
    void                    handleGetMobileCodeInfo(QDomNodeList nodeList);
    void                    handleToTraditionalChinese(QDomNodeList nodeList);

public slots:
    void                    qqCheckOnline();
    void                    getMobileCodeInfo();
    void                    toTraditionalChinese();
    void                    onResponse(const QtSoapMessage &response);

private:
    Ui::Widget *            ui;
    QtSoapHttpTransport *   m_pHttp;
};
#endif // WIDGET_H
